﻿namespace ViaConvert.Xml
{
    using System.Collections.Generic;
    using System.Xml.Serialization;
    using System.Linq;
    using System.IO;

    public class Serializer
    {
        public static Model.Xml.AddressInfo Deserialize(MemoryStream stream)
        {
            XmlSerializer xmlSerializer = new XmlSerializer(typeof(Model.Xml.AddressInfo));

            var data = xmlSerializer.Deserialize(stream) as Model.Xml.AddressInfo;

            return data;
        }
    }
}